<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        //回调函数嵌套回调函数,就是回调地狱 
        console.log('开始获取1');
        setTimeout(() => {
            console.log('获取成功1');
            console.log('开始获取2');
            setTimeout(() => {
                console.log('获取成功2');
                console.log('开始获取3');
                setTimeout(() => {
                    console.log('获取成功3');
                },1000)
            },2000)
        },3000)
    </script>
</body>

</html>